package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.domain.Good;
import cn.wolfcode.shop.cloud.feign.hystrix.GoodsFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

@FeignClient(name = "goods-server",fallback = GoodsFeignHystrix.class)
public interface GoodsFeignApi {
    @RequestMapping("queryGoods")
    Result<List<Good>> queryGoods(@RequestParam("ids")ArrayList<Long> ids);
}
